/* 弹窗遮罩层 */
.confirm-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 弹窗容器 */
.confirm-dialog {
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 90%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 弹窗头部 */
.confirm-dialog__header {
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.confirm-dialog__title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  text-align: left;
}

/* 弹窗主体 */
.confirm-dialog__body {
  padding: 20px 24px;
  flex: 1;
}

.confirm-dialog__message {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
}

/* 弹窗底部 */
.confirm-dialog__footer {
  padding: 16px 24px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* 按钮样式 */
.confirm-dialog__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  min-width: 100px;
}

.confirm-dialog__btn--confirm {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.confirm-dialog__btn--confirm:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.confirm-dialog__btn--confirm:active {
  transform: scale(0.98);
}

.confirm-dialog__btn--cancel {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(107, 114, 128, 0.2);
  border: none;
}

.confirm-dialog__btn--cancel:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  box-shadow: 0 4px 8px rgba(107, 114, 128, 0.3);
}

.confirm-dialog__btn--cancel:active {
  transform: scale(0.98);
}

/* 响应式设计 */
@media (max-width: 480px) {
  .confirm-dialog {
    width: 95%;
    max-width: none;
  }
  
  .confirm-dialog__footer {
    flex-direction: column-reverse;
  }
  
  .confirm-dialog__btn {
    width: 100%;
  }
}

